Current File : /var/www/vinorea/var/cache/dev/twig/9c/9cdddedf8527017eaa3fd28519d1a996.php |
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @PrestaShop/Admin/Configure/AdvancedParameters/performance.html.twig */
class __TwigTemplate_38cbb7ff80d68075aeac2d9c64c54f13 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'perfs_form_smarty_cache' => [$this, 'block_perfs_form_smarty_cache'],
'perfs_form_smarty_cache_form' => [$this, 'block_perfs_form_smarty_cache_form'],
'perfs_form_debug_mode' => [$this, 'block_perfs_form_debug_mode'],
'perfs_form_debug_mode_form' => [$this, 'block_perfs_form_debug_mode_form'],
'perfs_form_modules' => [$this, 'block_perfs_form_modules'],
'perfs_form_modules_form' => [$this, 'block_perfs_form_modules_form'],
'perfs_form_optional_features' => [$this, 'block_perfs_form_optional_features'],
'perfs_form_optional_features_form' => [$this, 'block_perfs_form_optional_features_form'],
'perfs_form_ccc' => [$this, 'block_perfs_form_ccc'],
'perfs_form_ccc_form' => [$this, 'block_perfs_form_ccc_form'],
'perfs_form_media_servers' => [$this, 'block_perfs_form_media_servers'],
'perfs_form_media_servers_form' => [$this, 'block_perfs_form_media_servers_form'],
'perfs_form_caching' => [$this, 'block_perfs_form_caching'],
'perfs_form_caching_form' => [$this, 'block_perfs_form_caching_form'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 25
return "@PrestaShop/Admin/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/Configure/AdvancedParameters/performance.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/Configure/AdvancedParameters/performance.html.twig"));
// line 27
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["smartyForm"]) || array_key_exists("smartyForm", $context) ? $context["smartyForm"] : (function () { throw new RuntimeError('Variable "smartyForm" does not exist.', 27, $this->source); })()), [0 => "@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig"], true);
// line 28
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["debugModeForm"]) || array_key_exists("debugModeForm", $context) ? $context["debugModeForm"] : (function () { throw new RuntimeError('Variable "debugModeForm" does not exist.', 28, $this->source); })()), [0 => "@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig"], true);
// line 29
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["optionalFeaturesForm"]) || array_key_exists("optionalFeaturesForm", $context) ? $context["optionalFeaturesForm"] : (function () { throw new RuntimeError('Variable "optionalFeaturesForm" does not exist.', 29, $this->source); })()), [0 => "@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig"], true);
// line 30
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["combineCompressCacheForm"]) || array_key_exists("combineCompressCacheForm", $context) ? $context["combineCompressCacheForm"] : (function () { throw new RuntimeError('Variable "combineCompressCacheForm" does not exist.', 30, $this->source); })()), [0 => "@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig"], true);
// line 31
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["mediaServersForm"]) || array_key_exists("mediaServersForm", $context) ? $context["mediaServersForm"] : (function () { throw new RuntimeError('Variable "mediaServersForm" does not exist.', 31, $this->source); })()), [0 => "@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig"], true);
// line 32
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["cachingForm"]) || array_key_exists("cachingForm", $context) ? $context["cachingForm"] : (function () { throw new RuntimeError('Variable "cachingForm" does not exist.', 32, $this->source); })()), [0 => "@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig"], true);
// line 25
$this->parent = $this->loadTemplate("@PrestaShop/Admin/layout.html.twig", "@PrestaShop/Admin/Configure/AdvancedParameters/performance.html.twig", 25);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 34
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 35
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["smartyForm"]) || array_key_exists("smartyForm", $context) ? $context["smartyForm"] : (function () { throw new RuntimeError('Variable "smartyForm" does not exist.', 35, $this->source); })()), 'form_start', ["attr" => ["class" => "form"], "action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_performance_smarty_save")]);
echo "
";
// line 36
$this->displayBlock('perfs_form_smarty_cache', $context, $blocks);
// line 56
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["smartyForm"]) || array_key_exists("smartyForm", $context) ? $context["smartyForm"] : (function () { throw new RuntimeError('Variable "smartyForm" does not exist.', 56, $this->source); })()), 'form_end');
echo "
";
// line 58
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["debugModeForm"]) || array_key_exists("debugModeForm", $context) ? $context["debugModeForm"] : (function () { throw new RuntimeError('Variable "debugModeForm" does not exist.', 58, $this->source); })()), 'form_start', ["attr" => ["class" => "form"], "action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_performance_debug_mode_save")]);
echo "
";
// line 59
$this->displayBlock('perfs_form_debug_mode', $context, $blocks);
// line 79
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["debugModeForm"]) || array_key_exists("debugModeForm", $context) ? $context["debugModeForm"] : (function () { throw new RuntimeError('Variable "debugModeForm" does not exist.', 79, $this->source); })()), 'form_end');
echo "
";
// line 81
$this->displayBlock('perfs_form_modules', $context, $blocks);
// line 124
echo "
";
// line 125
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["optionalFeaturesForm"]) || array_key_exists("optionalFeaturesForm", $context) ? $context["optionalFeaturesForm"] : (function () { throw new RuntimeError('Variable "optionalFeaturesForm" does not exist.', 125, $this->source); })()), 'form_start', ["attr" => ["class" => "form"], "action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_performance_optional_features_save")]);
echo "
";
// line 126
$this->displayBlock('perfs_form_optional_features', $context, $blocks);
// line 155
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["optionalFeaturesForm"]) || array_key_exists("optionalFeaturesForm", $context) ? $context["optionalFeaturesForm"] : (function () { throw new RuntimeError('Variable "optionalFeaturesForm" does not exist.', 155, $this->source); })()), 'form_end');
echo "
";
// line 157
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["combineCompressCacheForm"]) || array_key_exists("combineCompressCacheForm", $context) ? $context["combineCompressCacheForm"] : (function () { throw new RuntimeError('Variable "combineCompressCacheForm" does not exist.', 157, $this->source); })()), 'form_start', ["attr" => ["class" => "form"], "action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_performance_combine_compress_cache_save")]);
echo "
";
// line 158
$this->displayBlock('perfs_form_ccc', $context, $blocks);
// line 187
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["combineCompressCacheForm"]) || array_key_exists("combineCompressCacheForm", $context) ? $context["combineCompressCacheForm"] : (function () { throw new RuntimeError('Variable "combineCompressCacheForm" does not exist.', 187, $this->source); })()), 'form_end');
echo "
";
// line 189
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["mediaServersForm"]) || array_key_exists("mediaServersForm", $context) ? $context["mediaServersForm"] : (function () { throw new RuntimeError('Variable "mediaServersForm" does not exist.', 189, $this->source); })()), 'form_start', ["attr" => ["class" => "form"], "action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_performance_media_servers_save")]);
echo "
";
// line 190
$this->displayBlock('perfs_form_media_servers', $context, $blocks);
// line 219
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["mediaServersForm"]) || array_key_exists("mediaServersForm", $context) ? $context["mediaServersForm"] : (function () { throw new RuntimeError('Variable "mediaServersForm" does not exist.', 219, $this->source); })()), 'form_end');
echo "
";
// line 221
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["cachingForm"]) || array_key_exists("cachingForm", $context) ? $context["cachingForm"] : (function () { throw new RuntimeError('Variable "cachingForm" does not exist.', 221, $this->source); })()), 'form_start', ["attr" => ["class" => "form"], "action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_performance_caching_save")]);
echo "
";
// line 222
$this->displayBlock('perfs_form_caching', $context, $blocks);
// line 244
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["cachingForm"]) || array_key_exists("cachingForm", $context) ? $context["cachingForm"] : (function () { throw new RuntimeError('Variable "cachingForm" does not exist.', 244, $this->source); })()), 'form_end');
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 36
public function block_perfs_form_smarty_cache($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_smarty_cache"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_smarty_cache"));
// line 37
echo " <div class=\"card\">
<h3 class=\"card-header\">
<i class=\"material-icons\">business_center</i>
";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Smarty", [], "Admin.Advparameters.Feature"), "html", null, true);
echo "
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
";
// line 44
$this->displayBlock('perfs_form_smarty_cache_form', $context, $blocks);
// line 47
echo " </div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">";
// line 51
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Save", [], "Admin.Actions"), "html", null, true);
echo "</button>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 44
public function block_perfs_form_smarty_cache_form($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_smarty_cache_form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_smarty_cache_form"));
// line 45
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["smartyForm"]) || array_key_exists("smartyForm", $context) ? $context["smartyForm"] : (function () { throw new RuntimeError('Variable "smartyForm" does not exist.', 45, $this->source); })()), 'widget');
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 59
public function block_perfs_form_debug_mode($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_debug_mode"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_debug_mode"));
// line 60
echo " <div class=\"card\">
<h3 class=\"card-header\">
<i class=\"material-icons\">bug_report</i>
";
// line 63
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Debug mode", [], "Admin.Advparameters.Feature"), "html", null, true);
echo "
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
";
// line 67
$this->displayBlock('perfs_form_debug_mode_form', $context, $blocks);
// line 70
echo " </div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">";
// line 74
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Save", [], "Admin.Actions"), "html", null, true);
echo "</button>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 67
public function block_perfs_form_debug_mode_form($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_debug_mode_form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_debug_mode_form"));
// line 68
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["debugModeForm"]) || array_key_exists("debugModeForm", $context) ? $context["debugModeForm"] : (function () { throw new RuntimeError('Variable "debugModeForm" does not exist.', 68, $this->source); })()), 'widget');
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 81
public function block_perfs_form_modules($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_modules"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_modules"));
// line 82
echo " <div class=\"card form-horizontal\">
<h3 class=\"card-header\">
<i class=\"material-icons\">bug_report</i>
";
// line 85
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Modules", [], "Admin.Advparameters.Feature"), "html", null, true);
echo "
<span
class=\"help-box\"
data-container=\"body\"
data-toggle=\"popover\"
data-trigger=\"hover\"
data-placement=\"right\"
data-content=\"";
// line 93
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This feature allows you to identify modules that might be causing bugs on your store. Disable all non-built-in modules (not listed in composer.json). Then, re-enable each module one by one and check that everything works properly before moving on to the next one.", [], "Admin.Advparameters.Help"), "html_attr");
echo "\"
title=\"\"
data-original-title=\"\"
></span>
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
";
// line 100
$this->displayBlock('perfs_form_modules_form', $context, $blocks);
// line 120
echo " </div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 100
public function block_perfs_form_modules_form($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_modules_form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_modules_form"));
// line 101
echo " <div class=\"form-group row\">
<label class=\"form-control-label\">
";
// line 103
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Disable non built-in modules", [], "Admin.Advparameters.Feature"), "html", null, true);
echo "
</label>
<div class=\"col-sm input-container\">
<a
class=\"btn btn-primary pointer\"
href=\"";
// line 109
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_performance_module_disable_non_builtin");
echo "\"
id=\"disableNonBuiltInModulesBtn\"
data-confirm-title=\"";
// line 111
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Disable all non-built-in modules?", [], "Admin.Advparameters.Feature"), "html", null, true);
echo "\"
data-confirm-button-label=\"";
// line 112
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Disable", [], "Admin.Actions"), "html", null, true);
echo "\"
data-close-button-label=\"";
// line 113
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cancel", [], "Admin.Actions"), "html", null, true);
echo "\"
>
";
// line 115
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Disable", [], "Admin.Actions"), "html", null, true);
echo "
</a>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 126
public function block_perfs_form_optional_features($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_optional_features"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_optional_features"));
// line 127
echo " <div class=\"card\" id=\"optional_features\">
<h3 class=\"card-header\">
<i class=\"material-icons\">extension</i>
";
// line 130
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Optional features", [], "Admin.Advparameters.Feature"), "html", null, true);
echo "
<span class=\"help-box\"
data-container=\"body\"
data-toggle=\"popover\"
data-trigger=\"hover\"
data-placement=\"right\"
data-content=\"";
// line 137
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Some features can be disabled in order to improve performance.", [], "Admin.Advparameters.Help"), "html", null, true);
echo "\"
title=\"\">
</span>
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
";
// line 143
$this->displayBlock('perfs_form_optional_features_form', $context, $blocks);
// line 146
echo " </div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">";
// line 150
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Save", [], "Admin.Actions"), "html", null, true);
echo "</button>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 143
public function block_perfs_form_optional_features_form($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_optional_features_form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_optional_features_form"));
// line 144
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["optionalFeaturesForm"]) || array_key_exists("optionalFeaturesForm", $context) ? $context["optionalFeaturesForm"] : (function () { throw new RuntimeError('Variable "optionalFeaturesForm" does not exist.', 144, $this->source); })()), 'widget');
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 158
public function block_perfs_form_ccc($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_ccc"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_ccc"));
// line 159
echo " <div class=\"card\">
<h3 class=\"card-header\">
<i class=\"material-icons\">zoom_out_map</i>
";
// line 162
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("CCC (Combine, Compress and Cache)", [], "Admin.Advparameters.Feature"), "html", null, true);
echo "
<span class=\"help-box\"
data-container=\"body\"
data-toggle=\"popover\"
data-trigger=\"hover\"
data-placement=\"right\"
data-content=\"";
// line 169
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("CCC allows you to reduce the loading time of your page. With these settings you will gain performance without even touching the code of your theme. Make sure, however, that your theme is compatible with PrestaShop 1.7+. Otherwise, CCC will cause problems.", [], "Admin.Advparameters.Help"), "html", null, true);
echo "\"
title=\"\">
</span>
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
";
// line 175
$this->displayBlock('perfs_form_ccc_form', $context, $blocks);
// line 178
echo " </div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">";
// line 182
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Save", [], "Admin.Actions"), "html", null, true);
echo "</button>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 175
public function block_perfs_form_ccc_form($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_ccc_form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_ccc_form"));
// line 176
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["combineCompressCacheForm"]) || array_key_exists("combineCompressCacheForm", $context) ? $context["combineCompressCacheForm"] : (function () { throw new RuntimeError('Variable "combineCompressCacheForm" does not exist.', 176, $this->source); })()), 'widget');
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 190
public function block_perfs_form_media_servers($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_media_servers"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_media_servers"));
// line 191
echo " <div class=\"card\">
<h3 class=\"card-header\">
<i class=\"material-icons\">link</i>
";
// line 194
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Media servers (use only with CCC)", [], "Admin.Advparameters.Feature"), "html", null, true);
echo "
<span class=\"help-box\"
data-container=\"body\"
data-toggle=\"popover\"
data-trigger=\"hover\"
data-placement=\"right\"
data-content=\"";
// line 201
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("You must enter another domain, or subdomain, in order to use cookieless static content.", [], "Admin.Advparameters.Feature"), "html", null, true);
echo "\"
title=\"\">
</span>
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
";
// line 207
$this->displayBlock('perfs_form_media_servers_form', $context, $blocks);
// line 210
echo " </div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">";
// line 214
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Save", [], "Admin.Actions"), "html", null, true);
echo "</button>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 207
public function block_perfs_form_media_servers_form($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_media_servers_form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_media_servers_form"));
// line 208
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["mediaServersForm"]) || array_key_exists("mediaServersForm", $context) ? $context["mediaServersForm"] : (function () { throw new RuntimeError('Variable "mediaServersForm" does not exist.', 208, $this->source); })()), 'widget');
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 222
public function block_perfs_form_caching($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_caching"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_caching"));
// line 223
echo " <div class=\"card\">
<h3 class=\"card-header\">
<i class=\"material-icons\">link</i>
";
// line 226
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Caching", [], "Admin.Advparameters.Feature"), "html", null, true);
echo "
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
";
// line 230
$this->displayBlock('perfs_form_caching_form', $context, $blocks);
// line 233
echo "
";
// line 234
echo twig_include($this->env, $context, "@AdvancedParameters/memcache_servers.html.twig", ["form" => (isset($context["memcacheForm"]) || array_key_exists("memcacheForm", $context) ? $context["memcacheForm"] : (function () { throw new RuntimeError('Variable "memcacheForm" does not exist.', 234, $this->source); })())]);
echo "
</div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">";
// line 239
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Save", [], "Admin.Actions"), "html", null, true);
echo "</button>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 230
public function block_perfs_form_caching_form($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_caching_form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "perfs_form_caching_form"));
// line 231
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["cachingForm"]) || array_key_exists("cachingForm", $context) ? $context["cachingForm"] : (function () { throw new RuntimeError('Variable "cachingForm" does not exist.', 231, $this->source); })()), 'widget');
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 247
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 248
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"";
// line 249
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/new-theme/public/performance_preferences.bundle.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 250
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/default/js/bundle/admin_parameters/performancePage.js"), "html", null, true);
echo "\"></script>
<script>
var configuration = {
'addServerUrl': '";
// line 253
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("admin_servers_add"), "js"), "html", null, true);
echo "',
'removeServerUrl': '";
// line 254
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("admin_servers_delete"), "js"), "html", null, true);
echo "',
'testServerUrl': '";
// line 255
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("admin_servers_test"), "js"), "html", null, true);
echo "'
};
var app = new PerformancePage(configuration.addServerUrl, configuration.removeServerUrl, configuration.testServerUrl);
window.addEventListener('load', function () {
var addServerBtn = document.getElementById('add-server-btn');
var testServerBtn = document.getElementById('test-server-btn');
addServerBtn.addEventListener('click', function (event) {
event.preventDefault();
app.addServer();
});
testServerBtn.addEventListener('click', function (event) {
event.preventDefault();
app.testServer();
});
});
</script>
<script src=\"";
// line 275
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/default/js/bundle/admin_parameters/performancePageUI.js"), "html", null, true);
echo "\"></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@PrestaShop/Admin/Configure/AdvancedParameters/performance.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 793 => 275, 770 => 255, 766 => 254, 762 => 253, 756 => 250, 752 => 249, 747 => 248, 737 => 247, 724 => 231, 714 => 230, 699 => 239, 691 => 234, 688 => 233, 686 => 230, 679 => 226, 674 => 223, 664 => 222, 651 => 208, 641 => 207, 626 => 214, 620 => 210, 618 => 207, 609 => 201, 599 => 194, 594 => 191, 584 => 190, 571 => 176, 561 => 175, 546 => 182, 540 => 178, 538 => 175, 529 => 169, 519 => 162, 514 => 159, 504 => 158, 491 => 144, 481 => 143, 466 => 150, 460 => 146, 458 => 143, 449 => 137, 439 => 130, 434 => 127, 424 => 126, 409 => 115, 404 => 113, 400 => 112, 396 => 111, 391 => 109, 382 => 103, 378 => 101, 368 => 100, 355 => 120, 353 => 100, 343 => 93, 332 => 85, 327 => 82, 317 => 81, 304 => 68, 294 => 67, 279 => 74, 273 => 70, 271 => 67, 264 => 63, 259 => 60, 249 => 59, 236 => 45, 226 => 44, 211 => 51, 205 => 47, 203 => 44, 196 => 40, 191 => 37, 181 => 36, 168 => 244, 166 => 222, 162 => 221, 156 => 219, 154 => 190, 150 => 189, 144 => 187, 142 => 158, 138 => 157, 132 => 155, 130 => 126, 126 => 125, 123 => 124, 121 => 81, 115 => 79, 113 => 59, 109 => 58, 103 => 56, 101 => 36, 96 => 35, 86 => 34, 75 => 25, 73 => 32, 71 => 31, 69 => 30, 67 => 29, 65 => 28, 63 => 27, 50 => 25,);
}
public function getSourceContext()
{
return new Source("{#**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*#}
{% extends '@PrestaShop/Admin/layout.html.twig' %}
{% trans_default_domain \"Admin.Advparameters.Feature\" %}
{% form_theme smartyForm '@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig' %}
{% form_theme debugModeForm '@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig' %}
{% form_theme optionalFeaturesForm '@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig' %}
{% form_theme combineCompressCacheForm '@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig' %}
{% form_theme mediaServersForm '@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig' %}
{% form_theme cachingForm '@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig' %}
{% block content %}
{{ form_start(smartyForm, {attr : {class: 'form'}, action: path('admin_performance_smarty_save') }) }}
{% block perfs_form_smarty_cache %}
<div class=\"card\">
<h3 class=\"card-header\">
<i class=\"material-icons\">business_center</i>
{{ 'Smarty'|trans }}
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
{% block perfs_form_smarty_cache_form %}
{{ form_widget(smartyForm) }}
{% endblock %}
</div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">{{ 'Save'|trans({}, 'Admin.Actions') }}</button>
</div>
</div>
</div>
{% endblock %}
{{ form_end(smartyForm) }}
{{ form_start(debugModeForm, {attr : {class: 'form'}, action: path('admin_performance_debug_mode_save') }) }}
{% block perfs_form_debug_mode %}
<div class=\"card\">
<h3 class=\"card-header\">
<i class=\"material-icons\">bug_report</i>
{{ 'Debug mode'|trans }}
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
{% block perfs_form_debug_mode_form %}
{{ form_widget(debugModeForm) }}
{% endblock %}
</div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">{{ 'Save'|trans({}, 'Admin.Actions') }}</button>
</div>
</div>
</div>
{% endblock %}
{{ form_end(debugModeForm) }}
{% block perfs_form_modules %}
<div class=\"card form-horizontal\">
<h3 class=\"card-header\">
<i class=\"material-icons\">bug_report</i>
{{ 'Modules'|trans }}
<span
class=\"help-box\"
data-container=\"body\"
data-toggle=\"popover\"
data-trigger=\"hover\"
data-placement=\"right\"
data-content=\"{{ 'This feature allows you to identify modules that might be causing bugs on your store. Disable all non-built-in modules (not listed in composer.json). Then, re-enable each module one by one and check that everything works properly before moving on to the next one.'|trans({}, 'Admin.Advparameters.Help')|escape('html_attr') }}\"
title=\"\"
data-original-title=\"\"
></span>
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
{% block perfs_form_modules_form %}
<div class=\"form-group row\">
<label class=\"form-control-label\">
{{ 'Disable non built-in modules'|trans({}, 'Admin.Advparameters.Feature') }}
</label>
<div class=\"col-sm input-container\">
<a
class=\"btn btn-primary pointer\"
href=\"{{ path('admin_performance_module_disable_non_builtin') }}\"
id=\"disableNonBuiltInModulesBtn\"
data-confirm-title=\"{{ 'Disable all non-built-in modules?'|trans({}, 'Admin.Advparameters.Feature') }}\"
data-confirm-button-label=\"{{ 'Disable'|trans({}, 'Admin.Actions') }}\"
data-close-button-label=\"{{ 'Cancel'|trans({}, 'Admin.Actions') }}\"
>
{{ 'Disable'|trans({}, 'Admin.Actions') }}
</a>
</div>
</div>
{% endblock %}
</div>
</div>
</div>
{% endblock %}
{{ form_start(optionalFeaturesForm, {attr : {class: 'form'}, action: path('admin_performance_optional_features_save') }) }}
{% block perfs_form_optional_features %}
<div class=\"card\" id=\"optional_features\">
<h3 class=\"card-header\">
<i class=\"material-icons\">extension</i>
{{ 'Optional features'|trans }}
<span class=\"help-box\"
data-container=\"body\"
data-toggle=\"popover\"
data-trigger=\"hover\"
data-placement=\"right\"
data-content=\"{{ 'Some features can be disabled in order to improve performance.'|trans({}, 'Admin.Advparameters.Help') }}\"
title=\"\">
</span>
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
{% block perfs_form_optional_features_form %}
{{ form_widget(optionalFeaturesForm) }}
{% endblock %}
</div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">{{ 'Save'|trans({}, 'Admin.Actions') }}</button>
</div>
</div>
</div>
{% endblock %}
{{ form_end(optionalFeaturesForm) }}
{{ form_start(combineCompressCacheForm, {attr : {class: 'form'}, action: path('admin_performance_combine_compress_cache_save') }) }}
{% block perfs_form_ccc %}
<div class=\"card\">
<h3 class=\"card-header\">
<i class=\"material-icons\">zoom_out_map</i>
{{ 'CCC (Combine, Compress and Cache)'|trans }}
<span class=\"help-box\"
data-container=\"body\"
data-toggle=\"popover\"
data-trigger=\"hover\"
data-placement=\"right\"
data-content=\"{{ 'CCC allows you to reduce the loading time of your page. With these settings you will gain performance without even touching the code of your theme. Make sure, however, that your theme is compatible with PrestaShop 1.7+. Otherwise, CCC will cause problems.'|trans({}, 'Admin.Advparameters.Help') }}\"
title=\"\">
</span>
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
{% block perfs_form_ccc_form %}
{{ form_widget(combineCompressCacheForm) }}
{% endblock %}
</div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">{{ 'Save'|trans({}, 'Admin.Actions') }}</button>
</div>
</div>
</div>
{% endblock %}
{{ form_end(combineCompressCacheForm) }}
{{ form_start(mediaServersForm, {attr : {class: 'form'}, action: path('admin_performance_media_servers_save') }) }}
{% block perfs_form_media_servers %}
<div class=\"card\">
<h3 class=\"card-header\">
<i class=\"material-icons\">link</i>
{{ 'Media servers (use only with CCC)'|trans }}
<span class=\"help-box\"
data-container=\"body\"
data-toggle=\"popover\"
data-trigger=\"hover\"
data-placement=\"right\"
data-content=\"{{ 'You must enter another domain, or subdomain, in order to use cookieless static content.'|trans({}, 'Admin.Advparameters.Feature') }}\"
title=\"\">
</span>
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
{% block perfs_form_media_servers_form %}
{{ form_widget(mediaServersForm) }}
{% endblock %}
</div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">{{ 'Save'|trans({}, 'Admin.Actions') }}</button>
</div>
</div>
</div>
{% endblock %}
{{ form_end(mediaServersForm) }}
{{ form_start(cachingForm, {attr : {class: 'form'}, action: path('admin_performance_caching_save') }) }}
{% block perfs_form_caching %}
<div class=\"card\">
<h3 class=\"card-header\">
<i class=\"material-icons\">link</i>
{{ 'Caching'|trans }}
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
{% block perfs_form_caching_form %}
{{ form_widget(cachingForm) }}
{% endblock %}
{{ include('@AdvancedParameters/memcache_servers.html.twig', {'form': memcacheForm}) }}
</div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">{{ 'Save'|trans({}, 'Admin.Actions') }}</button>
</div>
</div>
</div>
{% endblock %}
{{ form_end(cachingForm) }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"{{ asset('themes/new-theme/public/performance_preferences.bundle.js') }}\"></script>
<script src=\"{{ asset('themes/default/js/bundle/admin_parameters/performancePage.js') }}\"></script>
<script>
var configuration = {
'addServerUrl': '{{ url('admin_servers_add')|e('js') }}',
'removeServerUrl': '{{ url('admin_servers_delete')|e('js') }}',
'testServerUrl': '{{ url('admin_servers_test')|e('js') }}'
};
var app = new PerformancePage(configuration.addServerUrl, configuration.removeServerUrl, configuration.testServerUrl);
window.addEventListener('load', function () {
var addServerBtn = document.getElementById('add-server-btn');
var testServerBtn = document.getElementById('test-server-btn');
addServerBtn.addEventListener('click', function (event) {
event.preventDefault();
app.addServer();
});
testServerBtn.addEventListener('click', function (event) {
event.preventDefault();
app.testServer();
});
});
</script>
<script src=\"{{ asset('themes/default/js/bundle/admin_parameters/performancePageUI.js') }}\"></script>
{% endblock %}
", "@PrestaShop/Admin/Configure/AdvancedParameters/performance.html.twig", "/var/www/vinorea/src/PrestaShopBundle/Resources/views/Admin/Configure/AdvancedParameters/performance.html.twig");
}
}